// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import Layout from '@/layout'

const operationRouter = {
  path: '/operation',
  component: Layout,
  redirect: '/operation/dataConfig',
  name: 'Operation',
  meta: {
    title: '系统设置',
    icon: 'clipboard',
    roles: ['admin']
  },
  children: [
    {
      path: 'dataConfig',
      component: () => import('@/views/systemSetting/dataConfig'),
      name: 'dataConfig',
      meta: { title: '公用数据配置', icon: '' }
    },
    {
      path: 'rewardConfig',
      component: () => import('@/views/systemSetting/rewardConfig'),
      name: 'rewardConfig',
      meta: { title: '积分获取规则配置', icon: '' }
    },
    {
      path: 'identityManager',
      component: () => import('@/views/systemSetting/administratorAuthority/identityManager'),
      name: 'identityManager',
      meta: { title: '角色管理', icon: '' }
    },
    {
      path: 'adminList',
      component: () => import('@/views/systemSetting/administratorAuthority/adminList'),
      name: 'adminList',
      meta: { title: '管理员列表', icon: '' }
    },
    {
      path:'villageConfig',
      component: () => import('@/views/systemSetting/villageConfig'),
      name: 'villageList',
      meta: { title: '地区管理', icon: '' }
    }
  ]
}

export default operationRouter  //collate
